-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(labelling): hotfix for issues related to deploy erroring due to nested yaml field overriding in StatefulSet w/ PVC #7011
Conversation
0677db1
to
d3ddeee
Compare
Codecov Report
@@ Coverage Diff @@
## main #7011 +/- ##
==========================================
- Coverage 70.48% 68.77% -1.72%
==========================================
Files 515 554 +39
Lines 23150 25695 +2545
==========================================
+ Hits 16317 17671 +1354
- Misses 5776 6822 +1046
- Partials 1057 1202 +145
Continue to review full report at Codecov.
|
d3ddeee
to
e758885
Compare
9115b39
to
9f726e9
Compare
905e64e
to
e5f3f34
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with one caveat/question: is jsonpath
a valid JSONPath string? If not, could you rename jsonpath
to navpath
or something similar to avoid any confusion that this the contents is actually a JSONPath string?
e5f3f34
to
a3577fb
Compare
Good idea. No I don't believe it is a valid JSONPath string as we cannot get the array index values which I believe is part of that spec. I have renamed the field "navpath" |
a3577fb
to
23335e8
Compare
…ested yaml field overriding in StatefulSet w/ PVC
23335e8
to
31df8c8
Compare
…ested yaml field overriding in StatefulSet w/ PVC (#7011)
Hotfix for an issue that is being seen in which when skaffold attempts to redeploy manifests with nested objects and "immutable" fields, skaffold fails as it will attempt to override the label/image when doing so will result in a deployment error.
Minimal repro:
Skaffold.yaml
k8-pod.yaml:
run "skaffold deploy" twice w/o this PR fails with:
works w/ this change.
A more extensible/robust approach to fixing this issue is in progress as well that will implement something similar to the proposed idea from - #6236 (found here - https://github.com/GoogleContainerTools/skaffold/blob/main/docs/design_proposals/configurable-transformable-allowlist.md)